 // import Vue from 'vue'
import Vue from "vue/dist/vue.common.js";
import Router from 'vue-router'
import Index from '@/pages/index'
import zhuye from '@/pages/zhuye/'
import xuanyi from '@/pages/xuanyi/'
import shangpinxiangqing from '@/pages/xuanyi/shangpinxiangqing'

import meixiang from '@/pages/meixiang/'
import renqibang from '@/pages/meixiang/renqibang'
import zhuanjifen from '@/pages/meixiang/zhuanjifen'
import jifenduihuan from '@/pages/meixiang/jifenduihuan'
import chongzhitixian from '@/pages/meixiang/chongzhitixian'
import chongzhi from '@/pages/meixiang/chongzhi'
import tixian from '@/pages/meixiang/tixian'
import wodemeixiang from '@/pages/meixiang/wodemeixiang'
import jifendashang from '@/pages/meixiang/jifendashang'

import wode from '@/pages/wode/'
import wodezuji from '@/pages/wode/wodezuji'
import wodeshoucang from '@/pages/wode/wodeshoucang'
import wodeguanzhu from '@/pages/wode/wodeguanzhu'
import order from '@/pages/wode/order'
import shimingrenzhen from '@/pages/wode/shimingrenzhen'
import hehuofenxiao from '@/pages/wode/hehuofenxiao'
import wodetuandui from '@/pages/wode/wodetuandui'
import tousujianyi from '@/pages/wode/tousujianyi'
import guanyuwomen from '@/pages/wode/guanyuwomen'
import dizhiguanli from '@/pages/wode/dizhiguanli'
import addAddress from '@/pages/wode/addAddress'
import wodeyajin from '@/pages/wode/wodeyajin'
import tuikuanshouhou from '@/pages/wode/tuikuanshouhou'
import wodejifen from '@/pages/wode/wodejifen'
import youhuijuan from '@/pages/wode/youhuijuan'
import wodeshouyi from '@/pages/wode/wodeshouyi'

import yidai from '@/pages/yidai/'
import jiesuan from '@/pages/yidai/jiesuan'
import meixiangmore from '@/pages/meixiang/meixiangmore'


import login from '@/pages/login'
import register from '@/pages/register'

Vue.use(Router)
export default new Router({
  linkActiveClass:"router-link",
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      redirect: '/zhuye'
    },
      {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/home',
      name: 'Index',
      component: Index,
      children: [  
            { path: "/xuanyi", component: xuanyi },
            { path: "/meixiang", component: meixiang },
            { path: "/wode", component: wode },
            { path: "/zhuye", component:zhuye},
            { path: "/yidai", component: yidai}
        ]  
    },
    {
      path: '/renqibang',
      name: 'renqibang',
      component: renqibang
    },
    {
      path: '/zhuanjifen',
      name: 'zhuanjifen',
      component: zhuanjifen
    },
     {
      path: '/jifenduihuan',
      name: 'jifenduihuan',
      component: jifenduihuan
    },
    {
      path: '/chongzhitixian',
      name: 'chongzhitixian',
      component: chongzhitixian
    },
    {
      path: '/chongzhi',
      name: 'chongzhi',
      component: chongzhi
    },
    {
      path: '/tixian',
      name: 'tixian',
      component: tixian
    },
    {
      path: '/wodemeixiang',
      name: 'wodemeixiang',
      component: wodemeixiang
    },
    {
      path: '/jifendashang',
      name: 'jifendashang',
      component: jifendashang
    },
    // 选衣
     {
      path: '/shangpinxiangqing',
      name: 'shangpinxiangqing',
      component: shangpinxiangqing
    },

    //我的
     {
      path: '/wodezuji',
      name: 'wodezuji',
      component: wodezuji
    },
     {
      path: '/wodeshoucang',
      name: 'wodeshoucang',
      component: wodeshoucang
    },
    {
      path: '/wodeguanzhu',
      name: 'wodeguanzhu',
      component: wodeguanzhu
    },
    {
      path: '/order',
      name: 'order',
      component: order
    },
    {
      path: '/shimingrenzhen',
      name: 'shimingrenzhen',
      component: shimingrenzhen
    },
      {
      path: '/hehuofenxiao',
      name: 'hehuofenxiao',
      component: hehuofenxiao
    },
     {
      path: '/wodetuandui',
      name: 'wodetuandui',
      component: wodetuandui
    },
     {
      path: '/tousujianyi',
      name: 'tousujianyi',
      component: tousujianyi
    },
     {
      path: '/guanyuwomen',
      name: 'guanyuwomen',
      component: guanyuwomen
    },
    {
      path: '/dizhiguanli',
      name: 'dizhiguanli',
      component: dizhiguanli
    },
     {
      path: '/addAddress',
      name: 'addAddress',
      component: addAddress
    },
    {
      path: '/wodeyajin',
      name: 'wodeyajin',
      component: wodeyajin
    },
    {
      path: '/tuikuanshouhou',
      name: 'tuikuanshouhou',
      component: tuikuanshouhou
    },
    {
      path: '/wodejifen',
      name: 'wodejifen',
      component: wodejifen
    },
     {
      path: '/youhuijuan',
      name: 'youhuijuan',
      component: youhuijuan
    },
    {
      path: '/wodeshouyi',
      name: 'wodeshouyi',
      component: wodeshouyi
    },
    {
      path: '/jiesuan',
      name: 'jiesuan',
      component: jiesuan
    },
    {
      path: '/meixiangmore',
      name: 'meixiangmore',
      component: meixiangmore
    }

  ]
})
